package com.smartcity.domain.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Schema(description = "User表单对象")
public class UserDTO {
    private static final long serialVersionUID = 1L;


    @Schema(description ="姓名")
    @TableField("name")
    private String name;

    @Schema(description = "昵称")
    @TableField("nickname")
    private String nickname;

    @Schema(description = "密码")
    @TableField("psw")
    private String psw;

    @Schema(description = "邮箱")
    @TableField("email")
    private String email;

    @Schema(description = "性别")
    @TableField("sex")
    private Boolean sex;

    @Schema(description = "电话")
    @TableField("tel")
    private String tel;

    @Schema(description = "证件号")
    @TableField("id_number")
    private String idNumber;

    @Schema(description = "头像")
    @TableField("avatar")
    private String avatar;


}
